<%@ page language="java" import="com.im.service.dto.Staff" pageEncoding="UTF-8"%>
<script>
    var g_loginedInfo = {};
    <%
        HttpSession httpSession = request.getSession();
        Object userRole = httpSession.getAttribute("USER_ROLE");
        Object sessionObj = httpSession.getAttribute("LOGON_INFO");
        Staff staff = null;
        if(userRole != null){	
            staff = (Staff) sessionObj;
        }
    %>

    <%if(staff != null){%>
		g_loginedInfo.staffId = '<%=staff.getStaffId()%>';
		g_loginedInfo.name = '<%=staff.getName()%>';
		g_loginedInfo.picPath = '<%=staff.getDescription()%>';
		g_loginedInfo.type='staff';

    <%}%>
</script>

